package model.Actions;

import java.util.List;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import view.ViewFunctions;
import DB.Connection.DBConnectionManager;

import commons.Entities.LegenCharacterThin;

public class getTopTenCharactersAction implements Runnable {

	private static final Log logger = LogFactory.getLog(addCharacterCommentAction.class);

	public getTopTenCharactersAction() {
	}

	@Override
	public void run() {
		logger.info("getTopTenCharactersAction starting...");

		List<LegenCharacterThin> characters = DBConnectionManager.get().getTopTenCharactersFromDB();
		ViewFunctions.get().updateGUITopTenCharacters(characters);

		logger.info("getTopTenCharactersAction ended.");
	}
}
